<%@page pageEncoding="UTF-8" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<html>
<head>
    <meta charset="utf-8">
    <title>Bootstrap </title>
    <link href="/bootstrap/css/bootstrap.min.css" rel="stylesheet">

</head>
<body>
<!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
<script src="/bootstrap/js/jquery-3.3.1.min.js"></script>

<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
<script src="/bootstrap/js/bootstrap.min.js"></script>

<form:form action="add.do" method="post" class="form-control" enctype="multipart/form-data">
    姓名：<input name="name"  class="form-control" type="text" value="${student.name}">
    密码：<input name="password"  class="form-control" type="password" value="${student.pwd}">
    性别：<input name="sex"  class="form-control" type="text" value="${student.sex}">
    班级：<input name="clazz"  class="form-control" type="text" value="${student.clazz}">
    生日：<input name="birthday"  class="form-control" type="text" value="${student.birthday}">
      <div class="form-group">
    <label for="file" class="col-sm-2 control-label">头像：</label>
    <div class="col-sm-5">
        <input type="file" class="form-control" id="file" name="file" placeholder="head image">
    </div>
</div><br/>
    <input  class="col-lg-4" value="add student" type="submit">
</form:form>
</body>
</html>